colors

fun colors(thumbColor: Color = WavySliderTokens.HandleColor.toColor(), activeTrackColor: Color = WavySliderTokens.ActiveTrackColor.toColor(), inactiveTrackColor: Color = WavySliderTokens.InactiveTrackColor.toColor(), disabledThumbColor: Color = WavySliderTokens.DisabledHandleColor .toColor() .copy(alpha = WavySliderTokens.DisabledHandleOpacity) .compositeOver(MaterialTheme.colorScheme.surface), disabledActiveTrackColor: Color = WavySliderTokens.DisabledActiveTrackColor .toColor() .copy(alpha = WavySliderTokens.DisabledActiveTrackOpacity), disabledInactiveTrackColor: Color = WavySliderTokens.DisabledInactiveTrackColor .toColor() .copy(alpha = WavySliderTokens.DisabledInactiveTrackOpacity)): WavySliderColors

Creates a WavySliderColors that represents the different colors used in parts of the WavySlider in different states.

For the name references below the words "active" and "inactive" are used. Active part of the WavySlider is filled with progress, so if slider's progress is 30% out of 100%, left (or right in RTL) 30% of the track will be active, while the rest is inactive.

Parameters

thumbColor

thumb color when enabled

activeTrackColor

color of the track in the part that is "active", meaning that the thumb is ahead of it

inactiveTrackColor

color of the track in the part that is "inactive", meaning that the thumb is before it

disabledThumbColor

thumb colors when disabled

disabledActiveTrackColor

color of the track in the "active" part when the WavySlider is disabled

disabledInactiveTrackColor

color of the track in the "inactive" part when the Slider is disabled